# coding=utf-8

class PrintTable:
    """打印九九乘法表"""
    def __init__(self):
        print('开始打印九九乘法表')
        # self.print99()
        # self.printstar()
        self.prints()

    # def print99(self):
    #     for i in range(1,10):
    #         for j in range(1,i+1):
    #             print('%d*%d=%s' % (j, i, i*j), end=' ')
    #         print('\n')

    # def printstar(self):
    #     for i in range(1,5):
    #         for j in range(1, i+1):
    #             print(j * "*", end=" ")
    #         print("\n")

    def prints(self):
        for i in range(1, 10):
                print(i*"*",end=" ")

pr=PrintTable()